<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('全部项目')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <!-- <li>
                                <p>文件名：</p>
                                <input type="text" name="accename"/>
                            </li>
                            <li>
                                <p>上传人：</p>
                                <input type="text" name="operator"/>
                            </li> -->
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                 <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "supervise/constructionDrawing";
    
    $(function() {
    	$('#bootstrap-table').bootstrapTable({
    	/* var options = {
    			url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                detailUrl: prefix + "/detail/{id}",
                modalName: "全部项目", */
                columns: [{
                        field: 'id',
                        title: '序号'
                    }, {
                        field: 'name',
                        title: '工程名称',
                        formatter: function (value, row, index) {
                            var actions = [];
                            actions.push('<a href="'+prefix+'/detail?name='+value+'">'+value+'</a>'); 
                            //actions.push('<a href="javascript:void(0)" onclick="$.operate.detailFull(\'' + row.id + '\')">'+value+'</a>');
                            return actions.join('');
                        }
                    }, 
                    {
                        field: 'projectName',
                        title: '项目名称'
                    },
                    {
                        field: 'company',
                        title: '建设单位'
                    },
                    {
                        field: 'video',
                        title: '现场视频'
                    },
                    {
                        field: 'date',
                        title: '上报日期'
                    },
                    {
                        field: 'status',
                        title: '状态'
                    },
                    {
	                    field: 'operation',
	                    title: '操作'
	                }
                ],
                data: [{
                    id: 1,
                    name: '测试',
                    projectName: '测试',
                    company: '测试',
                    video:'',
                    date: '2019-11-12',
                    status: '测试',
                    operation: '测试'
                }, {
                    id: 1,
                    name: '测试',
                    projectName: '测试',
                    company: '测试',
                    video: '',
                    date: '2019-11-12',
                    status: '测试',
                    operation: '测试'
                }]
    	    })
        //};
    	//$.table.init(options);
    });
    </script>
</body>
</html>